var pageCount = 1;
function classOnload(a){
    console.log(a);
// }

var Json={
    pageIndex:a,
    pageSize:9

}
// console.log(Json);
ajax.post(ajax.myUrl+"count/countList",Json,function(result){
    console.log(result);
    response(result);
    console.log(result.dataset.countList);
    var data = result.dataset.countList;
    var tbody = document.querySelector("tbody");
    for(var i=0;i<data.length;i++){
        var newtr = document.createElement("tr");
        newtr.innerHTML=`
         <td>${data[i].姓名}</td>
         <td>${data[i].请假天数}</td>
         <td>${data[i].身份}</td>
         <td>${data[i].出差天数}</td>
         <td>${data[i].工作天数}</td>
         <td>${data[i].应出勤天数}</td>
         <td>${data[i].实际出勤天数}</td>
         `;
        tbody.appendChild(newtr)
    }
})   

}
//查询

var dailyTime = document.getElementById("dailyTime");
// console.log(dailyTime)
var nowTime = new Date();
var year = nowTime.getFullYear();
var month = nowTime.getMonth()+1;
var day = nowTime.getDate();
var hour = nowTime.getHours();
var minutes = nowTime.getMinutes();
if(month<10){
    month="0"+month;
}
dailyTime.setAttribute("value",year+"-"+month+"-"+day);